/*
 * @Descripttion:
 * @Author: voanit
 * @Date: 2022-09-14 20:52:30
 * @LastEditors: voanit
 * @LastEditTime: 2022-09-14 21:30:00
 */
const express = require('express')
const app = express()
app.get('/news', (req, res) => {
  // res.send('1111')
  console.log(req.query.callback, 5)
  const fn = req.query.callback
  var arr = [
    { id: 1, name: 'jack' },
    { id: 2, name: 'rose' },
  ]
  res.send(fn + '(' + JSON.stringify(arr) + ')') //  fn([])
})
app.listen(5000, '192.168.85.136', () => {
  console.log('http://192.168.85.136:5000')
})
